
package commandapplication;// #[regen=yes,id=DCE.CF5C89C6-8AD4-091C-B91B-4F3A022CA3A6]
// </editor-fold> 
public class Comm3 implements CommandAbstract {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.B28D26B6-3D40-68FE-6B63-03CAAE88635E]
    // </editor-fold> 
    private int valor1;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.3F320EFF-0270-9770-A724-AEFBA7E55354]
    // </editor-fold> 
    private int valor2;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.B9A6CC46-3444-F5D6-3DED-97536501C7C5]
    // </editor-fold> 
    public Comm3 () {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.1995A168-4FB4-499F-07BE-BF08130329E7]
    // </editor-fold> 
    public int getValor1 () {
        return valor1;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.F48CA891-9F98-7FD7-F3EB-903A6ED3686F]
    // </editor-fold> 
    public void setValor1 (int val) {
        this.valor1 = val;
    }

    public int resultat(){
        return valor1+valor2;
    }
    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.ABD399C7-5EC6-B569-C74E-58FD5D183792]
    // </editor-fold> 
    public int getValor2 () {
        return valor2;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.25AB2867-D8B3-9AA6-313D-94C5D7198F4C]
    // </editor-fold> 
    public void setValor2 (int val) {
        this.valor2 = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.3DE6237E-E1F2-A0EF-7963-25419E175E2E]
    // </editor-fold> 
    public void execute () {
        
        System.out.println("Executant ordre 3");
        resultat();
        
    }

}

